package com.ruoyi.littleRedBook.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.littleRedBook.domain.pojo.UserAddress;

import java.util.List;

public interface UserAddressService extends IService<UserAddress> {
    AjaxResult addAddress(UserAddress address);

    AjaxResult updateAddress(UserAddress address);

    AjaxResult deleteAddress(Long id);

    AjaxResult setDefaultAddress(Long id);

    AjaxResult getAllUserAddresses();

    AjaxResult getDefaultAddress();

    AjaxResult getAddressById(Long id);
}
